<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
    .nw {
        float: left;
        width: 150px;
    }
</style>

<div class="bjui-pageContent">
    <form action="{:U('Model/editfieldset')}" method="post" data-toggle="validate">
        <table class="table table-bordered table-hover table-striped table-top" >
        <thead></thead>
        <tbody>
            <tr>
                <td>表单文字：</td>
                <td><input type="text" name="itemname" value="{$field.itemname}"></td>
            </tr>
            <tr>
                <td>数据字段名：</td>
                <td>{$field.field}</td>
            </tr>
            <tr>
                <td>数据类型：</td>
                <td>
                    <div class="nw">
                                <input type="radio" value="text" id="dtype1" name="dtype" class="np" <if condition="$field['type'] eq 'text'"> checked="1" </if>>单行文本(varchar)</div>
                            <div class="nw">
                                <input type="radio" value="textchar" id="dtype2" name="dtype" class="np" <if condition="$field['type'] eq 'textchar'"> checked="1" </if>>单行文本(char)</div>
                            <div class="nw">
                                <input type="radio" value="multitext" id="dtype3" name="dtype" class="np" <if condition="$field['type'] eq 'multitext'"> checked="1" </if>>多行文本</div>
                            <div class="nw">
                                <input type="radio" value="htmltext" id="dtype4" name="dtype" class="np" <if condition="$field['type'] eq 'htmltext'"> checked="1" </if>>HTML文本</div>
                            <br class="cls">
                            <div class="nw">
                                <input type="radio" value="textdata" id="dtype5" name="dtype" class="np" <if condition="$field['type'] eq 'textdata'"> checked="1" </if>>textarea区域</div>
                            <div class="nw">
                                <input type="radio" value="int" id="dtype6" name="dtype" class="np" <if condition="$field['type'] eq 'int'"> checked="1" </if>>整数类型</div>
                            <div class="nw">
                                <input type="radio" value="float" id="dtype7" name="dtype" class="np" <if condition="$field['type'] eq 'float'"> checked="1" </if>>小数类型</div>
                            <div class="nw">
                                <input type="radio" value="datetime" id="dtype8" name="dtype" class="np" <if condition="$field['type'] eq 'datetime'"> checked="1" </if>>时间类型</div>
                            <br class="cls">
                            <div class="nw">
                                <input type="radio" value="img" id="dtype9" name="dtype" class="np" <if condition="$field['type'] eq 'img'"> checked="1" </if>>单个图片</div>
                            <div class="nw">
                                <input type="radio" value="imgfile" id="dtype10" name="dtype" class="np" <if condition="$field['type'] eq 'imgfile'"> checked="1" </if>>多图片上传</div>
                            <div class="nw">
                                <input type="radio" value="media" id="dtype11" name="dtype" class="np" <if condition="$field['type'] eq 'media'"> checked="1" </if>>多媒体文件</div>
                            <div class="nw">
                                <input type="radio" value="addon" id="dtype12" name="dtype" class="np" <if condition="$field['type'] eq 'addon'"> checked="1" </if>>文件类型</div>
                            <br class="cls">
                            <div class="nw">
                                <input type="radio" value="select" id="dtype13" name="dtype" class="np" <if condition="$field['type'] eq 'select'"> checked="1" </if>>使用option下拉框</div>
                            <div class="nw">
                                <input type="radio" value="radio" id="dtype14" name="dtype" class="np" <if condition="$field['type'] eq 'radio'"> checked="1" </if>>使用radio选项卡</div>
                            <div class="nw">
                                <input type="radio" value="checkbox" id="dtype15" name="dtype" class="np" <if condition="$field['type'] eq 'checkbox'"> checked="1" </if>>Checkbox多选框</div>
                            <div class="nw">
                                <input type="radio" value="color" id="dtype16" name="dtype" class="np" <if condition="$field['type'] eq 'color'"> checked="1" </if>>颜色选取</div>
                </td>
            </tr>
            <tr>
                        <td>默认值：</td>
                        <td>
                            <textarea style="width:70%;height:60px" id="vdefault" type="text" name="vdefault">{$field.default_value}</textarea>
                            <br>
                            如果定义数据类型为select、radio、checkbox时，此处填写被选择的项目(用“,”分开，如“男,女,人妖”)。
                        </td>
                    </tr>
            <tr>
                <td>排序：</td>
                <td><input type="text" name="sort" value="{$field.sort}"></td>
            </tr>
            </tbody>
        </table>
        <input type="hidden" name="id" value="{$field.id}">
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
                <li><button data-icon="save" class="btn btn-default" type="submit">保存</button></li>
    </ul>
</div>